﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace TodoApp.TMS_SetUp.Operators
{
    /// <summary>
    /// 操作员管理
    /// </summary>
    public class TMS_Operator : BasicAggregateRoot<Guid>
    {
        /// <summary>
        /// 操作员编号
        /// </summary>
        [Required(ErrorMessage = ("编号不能为空"))]
        [StringLength(20)]
        public string Operator_SerialNumber { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        [Required(ErrorMessage = ("公司名称不能为空"))]
        [StringLength(20)]
        public string Operator_CompanyName { get; set; }
        /// <summary>
        /// 员工编号
        /// </summary>
        [Required(ErrorMessage = ("姓名不能为空"))]
        [StringLength(150)]
        public string Employees_Id { get; set; }
        /// <summary>
        /// 角色编号
        /// </summary>
        [Required(ErrorMessage = ("角色不能为空"))]
        [StringLength(150)]
        public string Role_Id { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = ("密码不能为空"))]
        public string Operator_Password { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool Operator_State { get; set; } = false;
        /// <summary>
        /// 删除
        /// </summary>
        public bool Operator_Delete { get; set; } = true;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Operator_DateTime { get; set; } = DateTime.Now;
    }
}
